package com.xzy.service.impl;

import com.xzy.dao.UserMapper;
import com.xzy.entity.User;
import com.xzy.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User login(String userName) {
        return userMapper.login(userName);
    }
    @Override
    public User getUser(int userId)
    {
        return userMapper.getUser(userId);
    }

}
